package main

import "fmt"

type Hello2 func(name string) //定义函数类型

func chinaSayHello2(name string) {
	fmt.Println("你好" + name)
}

func englishSayHello2(name string) {
	fmt.Println("hello" + name)
}

//			参数是Hello2 这个函数类型
func sayHello(hello Hello2, name string) {
	hello(name)
}

func main() {
	sayHello(chinaSayHello2, "，小明")
	sayHello(englishSayHello2, "，小明")
}
